import Vue from 'vue'
import App from './App'
import uView from '@/uni_modules/uview-ui'
import Cache from '@/common/cache.js'
import store from '@/store'
import {router,RouterMount} from '@/common/router.js'
import Utils from '@/common/utils.js'

 
Vue.config.productionTip = false

App.mpType = 'app'

Vue.use(uView)

Vue.use(router)


// 缓存管理
Vue.prototype.$httpCache = Cache

const app = new Vue({
    ...App,
	store
})


Vue.use(Utils,app)

require("./common/request")(app)

// #ifdef H5
	RouterMount(app,router,'#app')
// #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
